<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>APP下载</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            min-height: 100vh;
            background: linear-gradient(135deg, #ff6b6b 0%, #ffa502 100%);
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            display: flex;
            flex-direction: column;
            align-items: center;
            color: #fff;
        }

        .container {
            width: 100%;
            max-width: 500px;
            padding: 20px;
            text-align: center;
            margin-top: 50px;
        }

        .app-icon {
            width: 120px;
            height: 120px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 24px;
            margin: 0 auto 30px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 40px;
        }

        .app-icon::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
        }

        .app-title {
            font-size: 28px;
            font-weight: 600;
            margin-bottom: 15px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .app-desc {
            font-size: 16px;
            line-height: 1.6;
            margin-bottom: 40px;
            color: rgba(255,255,255,0.9);
        }

        .download-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 15px 40px;
            background: #fff;
            color: #ff6b6b;
            border-radius: 50px;
            font-size: 18px;
            font-weight: 600;
            text-decoration: none;
            transition: transform 0.2s;
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
            margin: 10px;
        }

        .download-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        }

        .download-btn i {
            margin-right: 10px;
            font-size: 24px;
        }

        .features {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 20px;
            margin-top: 50px;
            padding: 0 20px;
        }

        .feature-item {
            background: rgba(255, 255, 255, 0.1);
            padding: 20px;
            border-radius: 15px;
            backdrop-filter: blur(10px);
            text-align: center;
        }

        .feature-item i {
            font-size: 30px;
            margin-bottom: 10px;
        }

        .feature-item h3 {
            font-size: 16px;
            margin-bottom: 5px;
        }

        .feature-item p {
            font-size: 14px;
            color: rgba(255,255,255,0.8);
        }

        .qr-code {
            width: 150px;
            height: 150px;
            background: #fff;
            border-radius: 10px;
            margin: 30px auto;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            color: #666;
        }

        @media (max-width: 480px) {
            .container {
                margin-top: 30px;
            }
            
            .app-icon {
                width: 100px;
                height: 100px;
                font-size: 32px;
            }

            .app-title {
                font-size: 24px;
            }

            .download-btn {
                padding: 12px 30px;
                font-size: 16px;
            }
        }

        .logo {
            width: 120px;
            height: auto;
            margin-bottom: 30px;
            margin-top: 20px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            backdrop-filter: blur(10px);
            box-shadow: 0 8px 32px rgba(255, 107, 107, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: transform 0.3s ease;
        }
        
        .logo:hover {
            transform: scale(1.02);
            box-shadow: 0 12px 40px rgba(255, 107, 107, 0.3);
        }

        /* 微信引导层样式 */
        .wechat-tip {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            z-index: 9999;
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            padding-top: 20px;
        }

        .wechat-tip.show {
            display: flex;
        }

        .wechat-tip img {
            width: 200px;
            margin-bottom: 20px;
        }

        .wechat-tip p {
            color: #fff;
            font-size: 18px;
            text-align: center;
            padding: 0 30px;
        }

        .arrow {
            width: 50px;
            height: 50px;
            border: 2px solid #fff;
            border-top: none;
            border-right: none;
            transform: rotate(135deg);
            margin-bottom: 20px;
        }
    </style>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
</head>
<body>
    <!-- 微信引导层 -->
    <div class="wechat-tip" id="wechatTip">
        <div class="arrow"></div>
        <p>请点击右上角「...」</p>
        <p>选择「在浏览器中打开」</p>
    </div>

    <div class="container">
        <img src="static/images/logo.png" alt="爆料神器" class="logo">
        <h1 class="app-title">爆料神器</h1>
        <p class="app-desc">
           获取任务，分享图片，赚取现金<br>
            无任何套路，赚多少提多少
        </p>
        
        <div id="downloadButtons">
            <!-- 下载按钮将通过JS动态插入 -->
        </div>

        <div class="qr-code">
            扫描二维码下载APP
        </div>

        <div class="features">
            <div class="feature-item">
                <i class="fas fa-bolt"></i>
                <h3>操作简单</h3>
                <p>仅需三步即可完成</p>
            </div>
            <div class="feature-item">
                <i class="fas fa-shield-alt"></i>
                <h3>收益可观</h3>
                <p>稳定月入1500+元</p>
            </div>
            <div class="feature-item">
                <i class="fas fa-gift"></i>
                <h3>奖励丰厚</h3>
                <p>优质内容获得奖励</p>
            </div>
        </div>
    </div>

    <script>
        // 检测是否在微信浏览器中打开
        function isWechat() {
            const ua = navigator.userAgent.toLowerCase();
            return /micromessenger/.test(ua);
        }

        // 检测设备类型
        function detectDevice() {
            const ua = navigator.userAgent.toLowerCase();
            const isIOS = /iphone|ipad|ipod/.test(ua);
            const isAndroid = /android/.test(ua);
            
            // 如果是在微信中打开，显示引导层
            if (isWechat()) {
                document.getElementById('wechatTip').classList.add('show');
                return;
            }
            
            const downloadButtons = document.getElementById('downloadButtons');
            
            if (isIOS) {
                downloadButtons.innerHTML = `
                    <a href="itms-apps://itunes.apple.com/app/example" class="download-btn">
                        <i class="fab fa-apple"></i>
                        App Store 下载
                    </a>
                `;
            } else if (isAndroid) {
                downloadButtons.innerHTML = `
                    <a href="/download/android.apk" class="download-btn">
                        <i class="fab fa-android"></i>
                        Android 下载
                    </a>
                `;
            } else {
                // 如果是桌面设备，显示两个下载按钮
                downloadButtons.innerHTML = `
                    <a href="itms-apps://itunes.apple.com/app/example" class="download-btn">
                        <i class="fab fa-apple"></i>
                        App Store 下载
                    </a>
                    <a href="/download/android.apk" class="download-btn">
                        <i class="fab fa-android"></i>
                        Android 下载
                    </a>
                `;
            }
        }

        // 页面加载完成后执行检测
        window.addEventListener('load', detectDevice);
    </script>
</body>
</html> 